package com.example.bean.Service;

import com.example.bean.Controll.UserControll;
import com.example.bean.UserInfo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Primary;

@org.springframework.stereotype.Service



public class Service {
    public void sayHi(){
        System.out.println("Hi Service");
    }

//    @Autowired
    public void hello(){
        System.out.println("Hi hello");
    }
//    @Bean("u1")
//    public UserInfo userInfo1(){
//        UserInfo userInfo = new UserInfo(1,"zhangsan");
//        return userInfo;
//    }
//
//    @Bean
//    public UserInfo userInfo2(){
//        UserInfo userInfo = new UserInfo(2,"lisi");
//        return userInfo;
//    }


}
